from apps.vadmin.op_drf.models import BaseModel
from django.db.models import CharField, IntegerField, DateField


class Kq_All_Projects(BaseModel):
    kqId = IntegerField(verbose_name='客户Id')
    releaseDate = DateField(verbose_name='发布日期')
    projectName = CharField(max_length=255, verbose_name='项目名称')
    province = CharField(max_length=32, verbose_name='省份', blank=True, null=True)
    projectType = CharField(max_length=32, verbose_name='信息类型', blank=True, null=True)
    buyer = CharField(max_length=32, verbose_name='采购人', blank=True, null=True)
    seller = CharField(max_length=32, verbose_name='供应商', blank=True, null=True)
    number = CharField(max_length=32, verbose_name='中标金额', blank=True, null=True)

    class Meta:
        verbose_name = '项目中心表'
        verbose_name_plural = verbose_name

    def __str__(self):
        return f"{self.kqId}"
